package yxy.game.pm2.active.command;

import yxy.cherry.game.base.message.MessageEmitterHandler;
import yxy.cherry.game.base.message.annotation.MessageSource;
import yxy.cherry.game.base.message.annotation.MessageType;
import yxy.game.pm2.Result;
import yxy.game.pm2.command.Command;
import yxy.game.pm2.message.PackageMessage;

@MessageType(proto = 0x00602222, classtype = PackageMessage.PackageRequest.class)
public class CMD_Active_Test extends Command<PackageMessage.PackageRequest> {

	@Override
	public void execute(MessageSource messageSource, PackageMessage.PackageRequest request) {
		String playerCode = messageSource.getTag();

	}

	private void send(MessageSource messageSource, PackageMessage.PackageResponse.Builder response, Result result) {
		response.setResult(result.packResult());
		MessageEmitterHandler.getInstance().send(messageSource, response.build());
	}
}
